
package cz.czu.pef.DataModelling.service.impl;

import java.util.logging.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cz.czu.pef.DataModelling.dao.*;
import cz.czu.pef.DataModelling.domainObjects.Person;
import cz.czu.pef.DataModelling.entityObjects.PersonEntityImpl;
import cz.czu.pef.DataModelling.service.api.*;

/**
 * Implements all operations for given Entity.
 * This implementation should be used exclusively for accessing any DAO operations.
 * 
 * @author Rostislav Stříbrný
 *
 */
@Service(value="personService")
public class PersonServiceImpl extends AbstractWrapperServiceImpl<Person, PersonEntityImpl> implements PersonService
{
	Logger logger = Logger.getLogger(PersonServiceImpl.class.getName());
	
	@Autowired PersonDao personDao;

	@Override
	public Dao<PersonEntityImpl> getDao()
	{
		return personDao;
	}
}
